﻿using UnityEngine;
using UnityEngine.Audio;
using UnityEngine.Serialization;

namespace DL
{
        /// <summary>
        /// 音频信息
        /// </summary>
        [System.Serializable]
        public class SoundData : MonoBehaviour
        {
            [Header("音频类型")] public SoundType soundType;
            [Header("音频剪辑")] public AudioClip clip;
            [Header("音频分组")] public AudioMixerGroup outputGroup;
            [Header("音频是否循环播放")] public bool loop;
            [Header("音频是否经常被播放")] public bool frequentAudio;

            public void Init()
            {
                if (clip == null)
                {
                    Debug.LogWarning(name + "未添加Clip!");
                }
            }
        }
}